From: Colin Walters Date: Thu, 27 Oct 2016 17:43:39 +0000 (-0400) Subject: deploy: Suppress unused variable warning for fscreatecon cleanup X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~44^2~34 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=835d97d659b06d8e71d325fff458548731b9d78f;p=ostree.git deploy: Suppress unused variable warning for fscreatecon cleanup Fixes the clang build. Closes: #551 Approved by: jlebon --- diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c index 41a9a8df..427e188b 100644 --- a/src/libostree/ostree-sysroot-deploy.c +++ b/src/libostree/ostree-sysroot-deploy.c @@ -2146,7 +2146,10 @@ ostree_sysroot_deploy_tree (OstreeSysroot *self, goto out; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-variable" { ostree_cleanup_sepolicy_fscreatecon gpointer dummy = NULL; +#pragma GCC diagnostic pop /* Explicitly override the label for the origin file to ensure * it's system_conf_t.